<template>
  <view class="XNothing">
    <image class="img" src="@/static/img/nothing.png" mode="aspectFill"></image>
    <text class="msg" v-if="text">{{ text }}</text>
  </view>
</template>

<script setup lang="ts">
import { onMounted } from "vue";
const props = defineProps({
  text: {
    type: String,
    required: false,
    default: "",
  },
});
onMounted(() => {});
</script>

<style lang="scss" scoped>
.XNothing {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
  > .img {
    width: 448rpx;
    height: 322rpx;
    margin-top: 100rpx;
  }
  > .msg {
    font-size: 28rpx;
    font-family: PingFang SC, PingFang SC-Regular;
    font-weight: 400;
    text-align: center;
    color: #666666;
  }
}
</style>
